package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.addr.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 用户地址路由
 */
@FeignClient(contextId = FeignConst.HKS_ADDR, name = FeignConst.SERVICE_NAME)
@Api(tags = "地址管理", value = "地址管理")
public interface AddrFeignClient {

    @ApiOperation(httpMethod = "POST", value = "用户收件地址新增")
    @RequestMapping(value = "/addrMgmt/addrAdd")
    AddrAddRes add(@RequestBody AddrAddReq req);

    @ApiOperation(httpMethod = "POST", value = "用户收件地址修改")
    @RequestMapping(value = "/addrMgmt/addrMod")
    AddrModRes mod(@RequestBody AddrModReq req);

    @ApiOperation(httpMethod = "POST", value = "用户收件地址查询")
    @RequestMapping(value = "/addrMgmt/addrQry")
    AddrQryRes qry(@RequestBody AddrQryReq req);

    @ApiOperation(httpMethod = "POST", value = "用户收件地址删除")
    @RequestMapping(value = "/addrMgmt/addrDel")
    AddrDelRes del(@RequestBody AddrDelReq req);
}
